package com.jhy.study2.exception;

public class MyException1 extends Exception {

    private int exceptionCode;
    private String exceptionMsg;


    public MyException1(){}
    public MyException1(int code, String msg){
        super(msg);
        this.exceptionCode = code;
        this.exceptionMsg = msg;
    }

    public int getExceptionCode() {
        return exceptionCode;
    }

    public void setExceptionCode(int exceptionCode) {
        this.exceptionCode = exceptionCode;
    }

    public String getExceptionMsg() {
        return exceptionMsg;
    }

    public void setExceptionMsg(String exceptionMsg) {
        this.exceptionMsg = exceptionMsg;
    }
}
